//
//  StoryList.h
//  iPing
//
//  Created by Thomas on 8/6/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "TCSGLibArrayController.h"

@interface SGStoryList : NSObject {
	NSMutableArray *		orderedList;
	NSMutableDictionary *	dataDict;
	NSString *				lastStoryID;
	int						i;
	NSManagedObjectContext *managedObjectContext;
	IBOutlet TCSGLibArrayController *myController;

}
-(void)addStory:(NSString *)story withTitle:(NSString *)title withAuthor:(NSString *)author withHost:(NSString *)host withID:(NSString *)IDNumber withCheck:(NSNumber *)checkVal  withHTMLCode:(NSString *)HTMLCode;
-(void)addStori:(NSString *)story 
	  withTitle:(NSString *)title 
	 withAuthor:(NSString *)author 
	   withHost:(NSString *)host 
		 withID:(NSString *)IDNumber 
	  withCheck:(NSNumber *)checkVal;
- (id)getDictForRow:(int)row;
- (void)moveItemAtRow:(int)row value:(int)action;
- (void)removeItemAtRow:(int)row;
- (void)printDict;
- (int)numberOfItems;
- (NSString *) combineAll;
- (void) addCheckedToLibrary;
- (void)switchCheck:(NSString *)checkName forRow:(int)row;
- (BOOL)checkForRow:(int)row withKey:(NSString *)checkName; 
- (void)addExtraInfo:(NSDictionary *)extraInfo forRow:(int)row;
- (void)addStoriesArray:(NSArray *)array forRow:(int)row;
@property (readwrite, assign) NSManagedObjectContext *managedObjectContext;

@end
